package com.bjl.service;

import com.alibaba.fastjson.JSONObject;
import orm.base.baseImp.BaseServiceInterface;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * Created by ashin on 2017/11/22.
 */
public interface RoomService extends BaseServiceInterface {

    /**
     * 查询普通聊天室列表信息
     * @param map
     * @return
     * @throws Exception
     */
    public abstract JSONObject queryNormalChartRooms(Map map,HttpSession session) throws Exception;

    /**
     * 查询娱乐聊天室列表信息
     * @param map
     * @return
     * @throws Exception
     */
    public abstract JSONObject queryRecreationChartRooms(Map map, HttpSession session) throws Exception;

    /**
     * 查询所有用户
     * @param map
     * @param session
     * @return
     * @throws Exception
     */
    public abstract JSONObject query(Map map,HttpSession session) throws Exception;

    /**
     * 查询所有用户
     * @param map
     * @param session
     * @return
     * @throws Exception
     */
    public abstract JSONObject pagequery(Map map,HttpSession session) throws Exception;

    /**
     * 将用户新增到房间
     * @param map
     * @param session
     * @return
     * @throws Exception
     */
    public abstract JSONObject addUserRoom(Map map,HttpSession session) throws Exception;

    /**
     * 将用户移除出房间
     * @param map
     * @param session
     * @return
     * @throws Exception
     */
    public abstract JSONObject removeUserRoom(Map map,HttpSession session) throws Exception;
}
